package com.lucher.mes.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.lucher.mes.dao.DepotrackMapper;
import com.lucher.mes.po.Depotrack;
import com.lucher.mes.service.IDepotrackService;

@Service("depotrackService")
public class DepotrackServiceImpl implements IDepotrackService{
	 // 定义DAO
    @Resource
    private DepotrackMapper depotrackMapper = null;

    @Override
    public int deleteByPrimaryKey(Integer depotrackId) {
        return depotrackMapper.deleteByPrimaryKey(depotrackId);
    }

    @Override
    public int insert(Depotrack record) {
        return depotrackMapper.insert(record);
    }

    @Override
    public int insertSelective(Depotrack record) {
        return depotrackMapper.insertSelective(record);
    }

    @Override
    public Depotrack selectByPrimaryKey(Integer depotrackId) {
        return depotrackMapper.selectByPrimaryKey(depotrackId);
    }

    @Override
    public int updateByPrimaryKeySelective(Depotrack record) {
        return depotrackMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Depotrack record) {
        return depotrackMapper.updateByPrimaryKey(record);
    }
    
    @Override
    public List<Depotrack> findByList(Depotrack record) {
        return depotrackMapper.findByList(record);
    }
    
    @Override
    public int findByCount(Depotrack record) {
        return depotrackMapper.findByCount(record);
    }
    
    @Override
    public List<Depotrack> findByListForPage(Depotrack record) {
        return depotrackMapper.findByListForPage(record);
    }

    @Override
    public Depotrack findByDepotrackcode(String depotrackcode) {
        return depotrackMapper.findByDepotrackcode(depotrackcode);
    }
}
